﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Salary
{
    abstract class Employee
    {
        public string name { get; private set; }

        public Employee(string name)
        {
            if (String.IsNullOrEmpty(name))
            {
                throw new ArgumentException("String is null or empty");
            }
            else
            {
                this.name = name;
            }
        }

        abstract public void CalculateSalary();
    }
}
